
#ifndef __ADS1118_H
#define __ADS1118_H

#include "hard_spi.h"

#define ADS1118_CS_PORT					GPIOA
#define ADS1118_CS_PIN				 	GPIO_Pin_0

#define ADS1118_CS_HIGH					GPIO_SetBits(ADS1118_CS_PORT,ADS1118_CS_PIN)
#define ADS1118_CS_LOW					GPIO_ResetBits(ADS1118_CS_PORT,ADS1118_CS_PIN)


void ADS1118_Init(void);
float ADS1118_ReadAin0(void);

#endif //__ADS1118_H
